﻿using System;
using System.Collections.Generic;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using System.Diagnostics;

namespace Auction_Boxing_2
{
    public class GenericMelee : Melee
    {

        public override HitBox ItemHitbox
        {
            get
            {
                throw new NotImplementedException();
            }
        }

        public override bool isAttacking
        {
            get { throw new NotImplementedException(); }
        }

        public bool Active
        {
            get { return ItemHitbox.Enabled; }
            set { ItemHitbox.Enabled = value; }
        }

        public GenericMelee(float x, float y, int width, int height, BoxingPlayer StatePlayer, Input_Handler input)
        {

            this.Position = new Vector2(x, y);
            ItemAnimPlayer = new AnimationPlayer();
            name = "notimplemented";
            this.Player = StatePlayer;

            throw new NotImplementedException();
        }

        public override void LoadContent(ContentManager Content, Item item)
        {
            this.AuctionItem = item;

            ItemHitbox.LoadContent(Content);

            this.health = AuctionItem.health;
            this.stamina = AuctionItem.stamina;
            this.cooldown = AuctionItem.cooldown;
            this.defense = AuctionItem.defense;
            this.attack = AuctionItem.attack;
            this.movement = AuctionItem.movement;



            ItemAnimation = new Animation(item.display_texture, 1, false, 100);
            ItemAnimPlayer.PlayAnimation(ItemAnimation);
        }



        public override void HandleDirection(SpriteEffects effect)
        {

        }

        public override void Update()
        {

        }

        public override void HandleMovement()
        {

        }

        public override void HandleState()
        {


        }

        public override void SetPosition(float x, float y)
        {
            Position = new Vector2(x, y);


        }

        public override void HandleCollosion(List<BoxingPlayer> Players)
        {


        }

        public override void Ability() { }



        public override void Draw(GameTime gameTime, SpriteBatch spriteBatch)
        {

        }
    }
}